#include <string>
#include <unistd.h>
#include "my_log.hpp"
#include "basic_task.hpp"

class remote_contral : public basic_task
{
public:
    remote_contral()
        : _command()
    {}

    remote_contral(const char* input)
        : _command(input)
    {}

    const remote_contral& operator=(const char* input)
    {
        _command = input;
        return *this;
    }

    virtual void operator()()
    {
        sleep(1);
        _command.clear();
    }

private:
    std::string _command;
};